package com.norteksoft.erm.model;

import org.apache.commons.lang.builder.HashCodeBuilder;

/**
 * 许可证
 * 
 * @hibernate.class table="ERM_LICENSE"
 * @author Jiffy
 * 
 */
public class License extends BaseObject {

	private Long OID = new Long(-1);

	// 许可证内容
	private String contents;

	public int hashCode() {
		return new HashCodeBuilder().append(OID).append(contents).toHashCode();
	}

	/**
	 * @hibernate.id column="OID" unsaved-value="-1" type="long"
	 * @hibernate.generator class="sequence"
	 * @hibernate.param name="sequence" value="ERM_SEQUENCE"
	 */

	public Long getOID() {
		return OID;
	}

	public void setOID(Long oid) {
		OID = oid;
	}

	/**
	 * @hibernate.property column="CONTENTS"
	 *                     type="org.springframework.orm.hibernate3.support.ClobStringType"
	 *                     not-null="true"
	 * @return String
	 */
	public String getContents() {
		return contents;
	}

	public void setContents(String contents) {
		this.contents = contents;
	}

}
